#ifndef RESPONSESTRUCT_H
#define RESPONSESTRUCT_H
#include <QString>
#include <QVector>

//用户登陆接口返回
struct responseLogin{
    int uid;
};


//用户信息接口返回
struct responseUserInfo{
    int uid;
    QString username;
    int age;
    int sex;
    QString avatar;
    QString signText = "";//个性签名
    QString statusText = "";
    int status = 0;
};

//好友列表接口返回
struct responseGroupList{
    QString groupName;//组名
    int onlineNum;//在线人数
    int totalNum;//总人数
    QVector<responseUserInfo> friendList;
};

//接受对方发来的聊天消息
struct responseRecvChat{
    int uid;//发送者
    int beuid;//接受者
    QString msg;//发送的内容
};



class ResponseStruct
{
public:

    static const int XIAOH_ROUTE_CODE_SUCCESS = 0;

public:
    static const int USER_STATUS_ONLINE = 1;//上线状态
    static const int USER_STATUS_INVISIBLE = 0;//隐身状态

    static const int USER_SEX_MAN = 1;
    static const int USER_SEX_WOMAN = 0;
    static const int USER_SEX_UNKNOWN = -1;

    ResponseStruct();
};

#endif // RESPONSESTRUCT_H
